<?xml version="1.0" encoding="UTF-8"?>
<ui:composition
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
	xmlns:f="http://xmlns.jcp.org/jsf/core"
	xmlns:h="http://xmlns.jcp.org/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
	template="/WEB-INF/templates/public/default.xhtml"
>

	<f:metadata>
   		<f:viewParam name="seqNo" value="#{complaintSearchList.parameterValues['seqNo']}"></f:viewParam>		
   	</f:metadata>

	<ui:define name="head">
		<h:outputStylesheet name="css/public/zhongjieminglu.css" />
		<style type="text/css">
			.removeButton {
				float: right;
				margin-right: 20px;
			}
			
			td {				
				padding-bottom: 10px;
			}
			
			label {
				font-weight: bold;
			}
		</style>
		<h:outputStylesheet name="css/public/newuser-registration.css" />
		
	</ui:define>

	<ui:define name="content">
		<h:form>
			<p:messages id="messages" />	
			<div class="sub_wrap">
				<div class="Methbox_tit">
					<h2>咨询投诉</h2>
					<span><p:link
						outcome="/index.xhtml"
						target="_blank"
					>平台首页</p:link> &gt;咨询投诉</span>
				</div>
				<!--从这儿引用zhongjieminglu.css-->
				<div class="zjname-list">
					<h:panelGrid columns="3">
			        	<p:outputLabel for="seqNo" value="申请流水号"></p:outputLabel>
						<p:inputText
							id="seqNo"
							value="#{complaintSearchList.parameterValues['seqNo']}"
							required="true"
						></p:inputText>
						<p:commandButton action="ComplaintSearch.xhtml?faces-redirect=true&amp;includeViewParams=true&amp;firstResult=0" ajax="false" value="查询">		    		
				    	</p:commandButton>
					</h:panelGrid>
								
				</div>		
				    	
				<h:panelGrid
					columns="2"
					border="0" cellspacing="0" cellpadding="0"
					rendered="#{complaintSearchList.resultCount > 0}"
					styleClass="zxts_table"
					style="margin-top: 15px;"
				>
					<p:outputLabel
						value="标题"
					/>
					<h:outputText value="#{complaintSearchList.resultList[0].title}" />
					
					<p:outputLabel
						value="投诉内容"
					/>
					<h:outputText value="#{complaintSearchList.resultList[0].content}" />
					
					<p:outputLabel
						value="联系方式"
					/>
					<h:outputText
						id="contactInfo"
						value="#{complaintSearchList.resultList[0].contactInfo}"
					/>
					
					<p:outputLabel value="管理员回复"></p:outputLabel>
					<h:outputText value="#{complaintSearchList.resultList[0].handleContent}" />
				</h:panelGrid>
			</div>
		</h:form>
	</ui:define>

</ui:composition>
